package com.ruoyi.movie.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.movie.mapper.MovieVideoMapper;
import com.ruoyi.movie.domain.MovieVideo;
import com.ruoyi.movie.service.IMovieVideoService;

/**
 * 电影视频关联Service业务层处理
 *
 * @author ruoyi
 * @date 2025-10-28
 */
@Service
public class MovieVideoServiceImpl implements IMovieVideoService
{
    @Autowired
    private MovieVideoMapper movieVideoMapper;

    /**
     * 查询电影视频关联
     *
     * @param movieVideoId 电影视频关联主键
     * @return 电影视频关联
     */
    @Override
    public MovieVideo selectMovieVideoByMovieVideoId(Integer movieVideoId)
    {
        return movieVideoMapper.selectMovieVideoByMovieVideoId(movieVideoId);
    }

    /**
     * 查询电影视频关联列表
     *
     * @param movieVideo 电影视频关联
     * @return 电影视频关联
     */
    @Override
    public List<MovieVideo> selectMovieVideoList(MovieVideo movieVideo)
    {
        return movieVideoMapper.selectMovieVideoList(movieVideo);
    }

    /**
     * 新增电影视频关联
     *
     * @param movieVideo 电影视频关联
     * @return 结果
     */
    @Override
    public int insertMovieVideo(MovieVideo movieVideo)
    {
        return movieVideoMapper.insertMovieVideo(movieVideo);
    }

    /**
     * 修改电影视频关联
     *
     * @param movieVideo 电影视频关联
     * @return 结果
     */
    @Override
    public int updateMovieVideo(MovieVideo movieVideo)
    {
        return movieVideoMapper.updateMovieVideo(movieVideo);
    }

    /**
     * 批量删除电影视频关联
     *
     * @param movieVideoIds 需要删除的电影视频关联主键
     * @return 结果
     */
    @Override
    public int deleteMovieVideoByMovieVideoIds(Integer[] movieVideoIds)
    {
        return movieVideoMapper.deleteMovieVideoByMovieVideoIds(movieVideoIds);
    }

    /**
     * 删除电影视频关联信息
     *
     * @param movieVideoId 电影视频关联主键
     * @return 结果
     */
    @Override
    public int deleteMovieVideoByMovieVideoId(Integer movieVideoId)
    {
        return movieVideoMapper.deleteMovieVideoByMovieVideoId(movieVideoId);
    }

    /**
     * 根据电影ID删除电影视频关联
     *
     * @param movieId 电影ID
     * @return 结果
     */
    @Override
    public int deleteMovieVideoByMovieId(Integer movieId)
    {
        return movieVideoMapper.deleteMovieVideoByMovieId(movieId);
    }

    /**
     * 根据电影ID查询电影视频关联列表
     *
     * @param movieId 电影ID
     * @return 电影视频关联集合
     */
    @Override
    public List<MovieVideo> selectMovieVideoListByMovieId(Integer movieId)
    {
        return movieVideoMapper.selectMovieVideoListByMovieId(movieId);
    }
}
